package com.cn.system.dao;

import com.cn.system.domain.UserDO;

import java.util.List;
import java.util.Map;

/**
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-03 09:45:11
 */
public interface UserDao {

    UserDO get(Map<String, Object> param);

    List<UserDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(UserDO user);

    int update(UserDO user);

    int remove(String userId);

    int batchRemove(String[] userIds);

    String[] listAllDept();

    int saveUserRole(Map<String, Object> map);

    int deleteUserRole(String userId);
}
